/*
 * Created on 2006-5-11
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.hitrust.gs.action.report;

import java.util.ArrayList;

import com.hitrust.gs.bean.GSOperatorBean;
import com.hitrust.gs.business.GSOrgProcessor;
import com.hitrust.gs.form.GSStockQuantityMonthSumQueryForm;
import com.hitrust.gs.lib.GSBaseConstants;
import com.hitrust.gs.service.GSBaseAction;
import com.hitrust.gs.service.GSBaseForm;

/**
 * @author simonyi
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class GSStockQuantityMonthSumQueryAction extends GSBaseAction{
	public String execute(GSBaseForm aForm) throws Exception {
		 
	    GSStockQuantityMonthSumQueryForm tForm = (GSStockQuantityMonthSumQueryForm)aForm;
	    
	    String start = tForm.getStartdate();
        String end = tForm.getEnddate();
        String deptid = tForm.getDeptno();
    	String depttype = tForm.getDepttype();
    	String title = tForm.getFiletitle();
    	String querytype = tForm.getQuerytype();
    	
	    aForm.getRequest().setAttribute("begindate",start);
	    aForm.getRequest().setAttribute("enddate",end);
	    aForm.getRequest().setAttribute("deptno",deptid);
	    aForm.getRequest().setAttribute("depttype",depttype);
	    aForm.getRequest().setAttribute("filetitle",title);
	    aForm.getRequest().setAttribute("querytype",querytype);
	    
        
        return GSBaseConstants.FORWARD_SUCCESS;
        
	} 
}
